package cmcm.com.mutildepend;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.cmcm.login.xiaomi.LoginWithXiaoMi;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        init();
    }

    private void init() {
        findViewById(R.id.call_method).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                LoginWithXiaoMi.preparedLogin(MainActivity.this,0);
            }
        });
        findViewById(R.id.call_service).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ImplicyService.start_IMPLICYSERVICE(getApplicationContext());
            }
        });


    }
}
